package com.jie.staservice.client;

import com.jie.commonutils.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用Ucenter模块的接口
 * @author XieZhiJie
 * @create 2020-10-18 13:29
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    /**
     * 查询某一天注册人数
     * @param date  某一天
     * @return      返回某一天的注册人数
     */
    @GetMapping("/educenter/member/countRegister/{date}")
    ResultEntity countRegister(@PathVariable("date") String date);

}
